﻿@model TGIApp.Web.Models.SellTicketViewModelForSubmit
@{
    
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Sell</h2>
@using (Html.BeginForm())
{
    <fieldset>
        @{ if (ViewBag.Customers != null)
           { 
            <div class="editor-label">
                @Html.LabelForModel("Customers")
            </div>
            <div class="editor-field">
                @Html.DropDownList("CustomerId", new SelectList(ViewBag.Customers, "Id", "UserName", Model.CustomerId))
            </div>
           }
        }
        @{ if (ViewBag.PaymentModes != null)
           {
            <div class="editor-label">
                @Html.LabelForModel("Payment Modes")
            </div> 
            <div class="editor-field">
                @Html.DropDownList("PaymentModeId", new SelectList(ViewBag.PaymentModes, "Id", "Mode", Model.PaymentModeId))
            </div>
           }
   
        }
        <div class="editor-label">
            @Html.LabelForModel("Total Amount")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model=> model.Total)
        </div>
        <p>
            <input type="submit" value="Sell Tickets" />
        </p>
    </fieldset>
}